package nowcoder;

import java.util.Scanner;

public class 字符串逆序 {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println(reverse(scan.nextLine()));
    }

    public static String reverse(String origin) {
        char[] reverse = new char[origin.length()];
        for (int i = origin.length() - 1; i >= 0; i--) {
            reverse[origin.length() - i - 1] = origin.charAt(i);
        }
        return new String(reverse);
    }
}
